package com.example.demo.service.impl;

import com.example.demo.dao.SysPermissionMapper;
import com.example.demo.dto.SysPermission;
import com.example.demo.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SysPermissionServiceImpl
 * @Desecription TODO 1.2新增
 * @Author gjy
 * @Date 2021/4/8 13:22
 * @Version 1.2
 **/
@Service
public class SysPermissionServiceImpl implements SysPermissionService {
    @Autowired
    private SysPermissionMapper permissionMapper;

    /**
     * 获取指定角色所有权限
     */
    @Override
    public List<SysPermission> listByRoleId(Integer roleId) {
        return permissionMapper.listByRoleId(roleId);
    }

}
